<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\User;
use Faker\Generator as Faker;
use Illuminate\Support\Str;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

$factory->define(\App\Models\Shop\Good::class, function (Faker $faker) {
    return [
        'name'=> Str::random(5),
        'original_price' => $faker->randomFloat(2,10,100),
        'sell_price' => $faker->randomFloat(2,10,100),
        'sell_number'  => $faker->numberBetween(1,100),
        'class_id' => rand(1,20),
//        'info_images' =>
//        'loop_images',
//        'cover_img',
        'is_assemble' => true,
//        'attribute_list',
    ];
});
